<?php
/*
 * wap2.0 特卖会 购物流程
 */

if (!defined('IN_SEXMALL')){
	die('Hacking attempt');
}

$act_arr = array(
	'cart',
	'addtocart',
	'checkout',
	'done',
	'goods',
	'address',
	'bonus',
	'buy',
);

$action = empty($_REQUEST['act']) ? 'cart' : trim($_REQUEST['act']);

$now = local_time();

// 登录检查
$user_token = get_user_token();
$username = get_username();

if (empty($user_token) && $action != 'addtocart' ){
	//wap_header("Location: index.php?m=user&act=login");
}

// 加载品牌模块
if (!in_array($action, $act_arr)){
	$action = 'cart';
}

require include_model_file($model . '_' . $action);


?>